package com.wh.custom.service.impl;

import com.wh.custom.dao.CustomRegionMapper;
import com.wh.custom.pojo.CustomRegion;
import com.wh.custom.service.ICustomRegionService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomRegionServiceImpl implements ICustomRegionService {
    @Autowired
    private CustomRegionMapper regionMapper;
    @Override
    public List<CustomRegion> findByParentId(@Param("parentId") Long parentId) {
       List region= regionMapper.findByparentId(parentId);
        return region;

    }
}
